package com.ruicar.afs.cloud.common.modules.afscorebusiness.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description 留言操作类型
 * @Author Peng_Jinbo
 * @Date 2020/05/30 11:30
 */
@Getter
@AllArgsConstructor
public enum RemindOperateTypeEnum {
    SAVE("save", "保存留言"),
    REJECT("reject", "退回"),
    PARSE("parse", "暂停");

    String value;
    String name;

    public final static String getNameByValue(String value) {
        String name = "";
        for (RemindOperateTypeEnum enumEntity : values()) {
            if (enumEntity.value.equals(value)) {
                name = enumEntity.name;
                break;
            }
        }
        return name;
    }
}
